package cn.edu.scau.cmi.yewangjiang.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

public class Teacher {
    public Teacher() {
    }

    private Long id;
    private String name;
    private Set students = new HashSet();

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setStudents(Set students) {
        this.students = students;
    }

    public Long getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public Set getStudents() {
        return this.students;
    }
}
